package com.k.demo.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.k.demo.entity.CustomerUser;
import com.k.demo.entity.RedBag;

public interface CustomerUserService {
	//登录
	CustomerUser login(String user_msg,String user_pwd);
	//插入用户
	int insertCustomerUser(CustomerUser customeruser);
	
	CustomerUser getCustomerUserByUserid(int userid);
	
	CustomerUser getCustomerUserByUserName(String username);
	
	List<CustomerUser> getCustomerUserByIdOrName(String user_msg);
	
	boolean updateCustomerUser(CustomerUser customerUser);
	
	boolean deleteCustomerUser(int userid);
	
	List<CustomerUser> getAll();
	
	List<CustomerUser> getCustomerUserByKind(int user_kind);
	
	int deleteForEach(List<Integer> userlist);
	
	List<CustomerUser> getCustomerUserByUserNameAndUserKind(CustomerUser customeruser);
	
	//分页查找全部
	PageInfo<CustomerUser> getAlltWithPage(int pageNum,int pageSize);
	
	List<Integer> getIdByName(String user_true_name);
	
	List<CustomerUser> getByIdList(List<Integer> user_id);
	
	//分页显示顾客的组合查询结果
	PageInfo<CustomerUser> getSearchResutlttWithPage(int pageNum,int pageSize,CustomerUser customeruser);
}
